package com.tangmu.rabbits.ui.activity.mine;

import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.tangmu.rabbits.R;
import com.tangmu.rabbits.base.BaseActivity;
import com.tangmu.rabbits.constants.Constants;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 设置
 */
public class SettingsActivity extends BaseActivity {

    @BindView(R.id.rl_about_us)
    RelativeLayout rlAboutUs;
    @BindView(R.id.rl_feed_back)
    RelativeLayout rlFeedBack;
    @BindView(R.id.tv_version_code)
    TextView tvVersionCode;
    @BindView(R.id.rl_check_update)
    RelativeLayout rlCheckUpdate;

    @Override
    protected void initImmersionBar() {
        super.initImmersionBar();
        mImmersionBar.statusBarColor(R.color.transparent).titleBar(R.id.headerView).init();
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_settings;
    }

    @Override
    public void initPresenter() {

    }

    @Override
    public void initView() {
        setHeaderImage(Constants.Position.LEFT, R.drawable.icon_back, false, new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        setHeaderTitle("设置");

    }

    @OnClick({R.id.rl_about_us, R.id.rl_feed_back, R.id.rl_check_update})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.rl_about_us:
                startActivity(AboutUsActivity.class);
                break;
            case R.id.rl_feed_back:
                startActivity(FeedBackActivity.class);
                break;
            case R.id.rl_check_update:
                break;
        }
    }
}
